package com.example.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigInteger;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "TABLES")
public class Tables {
    /* TABLES表无主键 */
    @EmbeddedId
    private TablesId id;
    
    @Column(name = "TABLE_TYPE")
    private String tableType;
    
    @Column(name = "ENGINE")
    private String engine;
    
    @Column(name = "VERSION")
    private BigInteger version;
    
    @Column(name = "ROW_FORMAT")
    private String rowFormat;
    
    @Column(name = "TABLE_ROWS")
    private BigInteger tableRows;
    
    @Column(name = "AVG_ROW_LENGTH")
    private BigInteger avgRowLength;
    
    @Column(name = "DATA_LENGTH")
    private BigInteger dataLength;
    
    @Column(name = "MAX_DATA_LENGTH")
    private BigInteger maxDataLength;
    
    @Column(name = "INDEX_LENGTH")
    private BigInteger indexLength;
    
    @Column(name = "DATA_FREE")
    private BigInteger dataFree;
    
    @Column(name = "AUTO_INCREMENT")
    private BigInteger autoIncrement;
    
    @Column(name = "CREATE_TIME")
    private Date createTime;
    
    @Column(name = "UPDATE_TIME")
    private Date updateTime;
    
    @Column(name = "CHECK_TIME")
    private Date checkTime;
    
    @Column(name = "TABLE_COLLATION")
    private String tableCollation;
    
    @Column(name = "CHECKSUM")
    private BigInteger checksum;
    
    @Column(name = "CREATE_OPTIONS")
    private String createOptions;
    
    @Column(name = "TABLE_COMMENT")
    private String tableComment;
}
